.modal {
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal__content {
  display: flex;
  width: 617px;
  height: 587px;
  background-color: #eeeeee;
  position: relative;
  transition: all 0.3s ease;
  transform: scale(0.5);
}

.modal__content.active {
  transform: scale(1);
}

.modal__logo {
  position: absolute;
  left: 30px;
  top: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal__logo:hover {
  transform: scale(1.2);
}

.modal__close {
  position: absolute;
  right: 12px;
  top: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal__close:hover {
  color: red;
  filter: invert(48%) sepia(13%) saturate(3207%) hue-rotate(130deg)
    brightness(95%) contrast(80%);
  transform: scale(1.2);
}

.modal__form {
  margin: 94px;
  padding: 24px 39px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: scale(0.5);
}

.modal__form.active {
  transform: scale(1);
}

.modal__title {
  font-family: "Open Sans";
  font-weight: 700;
  font-size: 25px;
  color: #393e46;
}

.change__form {
  display: flex;
  gap: 10px;
  font-size: 15px;
}

.change__default__text {
  font-family: "Open Sans";
  font-weight: 400;
  color: #b9b9b9;
}

.change__color__text {
  display: inline-flex;
  position: relative;
  font-family: "Open Sans";
  font-weight: 400;
  color: #00adb5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.change__color__text:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #00adb5;
  content: "";
  transition: all 0.3s ease-in-out;
}

.change__color__text:hover:after,
.change__color__text:focus:after {
  width: 100%;
}

.login__via__social {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
}

.social {
  cursor: pointer;
  transition: all 0.3s ease;
}

.social:hover {
  transform: scale(1.2);
}

.separation__block {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.separation__title {
  font-family: "Open Sans";
  font-weight: 400;
  font-size: 14px;
  color: #b9b9b9;
}

.form__inputs {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
}

.form__input {
  font-family: "Open Sans";
  font-weight: 400;
  font-size: 15px;
  color: #000000;
  padding: 9px 9px;
  border: 0.5px solid #b9b9b9;
}

.form__input::placeholder {
  color: #b9b9b9;
}

.error {
  padding-top: 10px;
  font-family: "Open Sans";
  font-weight: 400;
  font-size: 15px;
  color: red;
}

.form__bottom {
  width: 351px;
  margin-top: 37px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form__send {
  font-family: "Open Sans";
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  background-color: #393e46;
  padding: 10px 19px;
  transition: all 0.3s ease;
}

.form__send:hover {
  background-color: #4c5158;
}

.success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 94px;
  padding: 24px 39px;
  align-self: center;
  gap: 28px;
}

.success__title {
  font-family: "Open Sans";
  font-weight: 700;
  font-size: 20px;
  color: #393e46;
}

.success__text {
  font-family: "Open Sans";
  font-weight: 400;
  font-size: 14px;
  text-align: center;
}

.success__button {
  display: inline-flex;
  font-family: "Open Sans";
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  background-color: #393e46;
  padding: 10px 19px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success__button:hover {
  background-color: #4c5158;
}

@media (max-width: 613px) {
  .modal__content {
    width: 335px;
    height: auto;
  }
  .modal__content.active {
    width: 335px;
  }
  .modal__logo {
    position: absolute;
    left: 5px;
    top: 5px;
  }
  .modal__form {
    margin: 50px;
    width: 235px;
    height: 300px;
    background-color: #fff;
    padding: 15px 25px;
  }
  .modal__title {
    font-size: 16px;
  }
  .change__form {
    flex-direction: column;
    gap: 0px;
    font-size: 13px;
  }
  .separation__block {
    margin-top: 5px;
  }
  .form__inputs {
    padding-top: 15px;
  }
  .form__input {
    font-size: 12px;
    padding: 6px 6px;
  }
  .form__bottom {
    width: 185px;
    margin-top: 20px;
  }
  .form__send {
    font-size: 14px;
    padding: 7px 16px;
  }
  .forgot__password {
    margin-left: 10px;
    font-size: 12px;
  }
  .success {
    width: 235px;
    height: auto;
    margin: 50px;
    padding: 15px 25px;
  }

  .success__title {
    font-size: 15px;
  }
}
